<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>提示词模板 - 跟着LLM学Python</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            background: #f5f5f5;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .prompt-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .prompt-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .prompt-card h3 {
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .prompt-content {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .copy-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            transition: 0.3s;
        }

        .copy-btn:hover {
            background: #2980b9;
        }

        .back-btn {
            display: inline-block;
            margin-bottom: 20px;
            color: #3498db;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <a href="index.html" class="back-btn">← 返回主页</a>
        <div class="header">
            <h1>提示词模板库</h1>
            <p>精选的Python学习提示词模板</p>
        </div>
        <div class="prompt-grid">
            <div class="prompt-card">
                <h3>行星运动模拟</h3>
                <div class="prompt-content">
                    请帮我解释如何使用Python模拟行星运动。我需要：
                    1. 基本的物理公式说明
                    2. 代码实现步骤
                    3. 可视化方案建议
                </div>
                <button class="copy-btn">复制提示词</button>
            </div>
            <!-- 添加更多提示词卡片 -->
        </div>
    </div>
    <script>
        document.querySelectorAll('.copy-btn').forEach(button => {
            button.addEventListener('click', () => {
                const content = button.previousElementSibling.textContent;
                navigator.clipboard.writeText(content);
                button.textContent = '已复制！';
                setTimeout(() => {
                    button.textContent = '复制提示词';
                }, 2000);
            });
        });
    </script>
</body>
</html>